package com.pope.framework.triage.modular.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author superpope
 * @since 2019-01-21
 */
@Data
@TableName("t_triage_triage_log_info")
@ApiModel(value="TriageLogInfo对象", description="")
public class TriageLogInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private Integer id;

    @ApiModelProperty(value = "分诊ID")
    @TableField("TRIAGE_ID")
    private Integer triageId;

    @TableField("COMING_GRADE")
    private Integer comingGrade;

    @TableField("CHANGE_GRADE")
    private Integer changeGrade;

    @ApiModelProperty(value = "更改分级原因")
    @TableField("CHANGE_GRADE_RESON")
    private String changeGradeReson;

    @TableField("WHERE_ABOUTS")
    private String whereAbouts;

    @ApiModelProperty(value = "分诊科室")
    @TableField("DEPART")
    private Integer depart;

    @ApiModelProperty(value = "转入医院ID")
    @TableField("TO_HOSPITAL")
    private Integer toHospital;

    @TableField("CONTENT")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField(value="CREATETIME",fill=FieldFill.INSERT)
    private String createtime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value="UPDATETIME",fill=FieldFill.INSERT_UPDATE)
    private String updatetime;
    
    @TableField(value="CREATE_MAN",fill=FieldFill.INSERT)
    @ApiModelProperty(value = "创建人,可不用填写，填写无效",dataType="String")
    private String  createMan;
    
    /**
     * 操作员标识
     */
    @TableField(value="SITE_ID",fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "租户字段,可不用填写，填写无效")
    private Integer siteId;
    /**
     * 操作员标识
     */
    @TableField(value="STAFF_ID",fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "操作员标识,可不用填写，填写无效",dataType="Integer")
    private Integer staffId;
    /**
     * 备注
     */
    @TableField("REMARK")
    @ApiModelProperty(value = "备注",dataType="String")
    private String remark;
    
    /**
     * 医院ID
     */
    @TableField("HOSPITAL_ID")
    
    @ApiModelProperty(value = "医院ID",dataType="String",required=true)
    @NotNull(message="医院ID不能为空")
    private Integer hospitalId;


}
